package com.briup.emdc.config.impl;

import com.briup.emdc.config.Configuration;
import com.briup.emdc.config.Log;
import java.util.Properties;
import org.apache.log4j.Logger;

/**
 * @author Kevin
 * @since 2024.04.11
 **/
public class LogImpl implements Log{
    private final Logger log;

    public LogImpl(){
        this.log=Logger.getRootLogger();
    }

    @Override
    public void debug(final String message){
        this.log.debug(message);
    }

    @Override
    public void info(final String message){
        this.log.info(message);
    }

    @Override
    public void warn(final String message){
        this.log.warn(message);
    }

    @Override
    public void error(final String message){
        this.log.error(message);
    }

    @Override
    public void fatal(final String message){
        this.log.fatal(message);
    }

    @Override
    public void init(final Properties prop) throws Exception{}

    @Override
    public void configure(final Configuration conf) throws Exception{}
}
